package uriel.frankel;

import java.text.DecimalFormat;

import uriel.frankel.model.Algorithem;




import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class TaxesDialog extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// Be sure to call the super class.
		super.onCreate(savedInstanceState);
		setContentView(R.layout.custom_dialog_activity);
		TextView healtTaxTextView = (TextView) findViewById(R.id.healtTaxTextView);
		TextView socialSecurityTextView = (TextView) findViewById(R.id.socialSecurityTextView);
		TextView incomeTaxTextView = (TextView) findViewById(R.id.incomeTaxTextView);
		 DecimalFormat formatter = new DecimalFormat("#,###");
		
		healtTaxTextView.setText("מס בריאות : " + formatter.format(Algorithem.GetInstance().GetHealthTax()));
		socialSecurityTextView.setText("ביטוח לאומי : " + formatter.format(Algorithem.GetInstance().getsocialSecurity()));
		incomeTaxTextView.setText("מס הכנסה : " + formatter.format(Algorithem.GetInstance().GetIncomeTax()));
	}

}
